package com.proximity.json;

import java.util.Map;

import org.springframework.web.servlet.view.json.MappingJacksonJsonView;

public class ProximityJsonView extends MappingJacksonJsonView {
	
	@Override
	@SuppressWarnings("unchecked")
	protected Object filterModel(Map<String, Object> model) {
		Map<String, Object> result = (Map<String, Object>)super.filterModel(model);
		String firstKey = result.keySet().iterator().next();
		return result.get(firstKey);
	}

}
